<%@ page language="java" contentType="text/html; charse=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="../tmp/header2.jsp"/>
<div class="main-content" style="margin-left: 0px;padding-top: 0px;">
					<div class="breadcrumbs" id="breadcrumbs" style="left:0">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
						<ul class="breadcrumb">
							<li><i class="icon-home home-icon"></i>主页</li>
							<li>${pname }</li><li>${name }</li>
							<li>
								<a href="${action }.html?pname=${pname }&name=${name}${action == 'add'?'':'&id='}${action == 'add'?'':data.id}">
								<c:if test="${action=='add' }">添加</c:if>
								<c:if test="${action!='add' }">修改</c:if>
								</a>
							</li>
						</ul><!-- .breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- #nav-search -->
					</div>
<div class="page-content">
	<div class="row">
		<div class="col-xs-12 col-sm-12">
			<div class="widget-box">
				<div class="widget-header">
					<h4>添加</h4>
				</div>
				<form action="${action == 'add'?'add_chk.html':'modify_chk.html' }">
				<div class="widget-body"><div class="widget-body-inner" style="display: block;">
					<input type="hidden" name="id" value="${data.id }">
					<div class="widget-main">
						<div>
							<label for="name">名字</label>
							<textarea name="name" class="form-control" id="name">${data.name }</textarea>
						</div>
						<hr>
						<div>
							<label for="pid">父ID</label>
							<select name="pid" class="form-control" id="pid" multiple="multiple">
								<option value="0"
								<c:if test="${0 == data.pid }"> selected = "selected" </c:if>
								>作为顶级菜单</option>
								<c:forEach items="${adminMenues }" var="vo">
									<option value="${vo.id }"
										<c:if test="${vo.id == data.pid }"> selected = "selected" </c:if>
									>${vo.name}</option>
								</c:forEach>
							</select>
						</div>
						<hr>
						<div>
							<label for="href">链接</label>
							<textarea name="href"  class="form-control" id="href" >${data.href }</textarea>
						</div>
						<hr>
						<div>
							<label for="orderby">orderby</label>
							<textarea name="orderby" class="form-control" id="orderby">${data.orderby }</textarea>
						</div>
						<div>
							<label for="method">方法</label>
							<textarea name="method" class="form-control" id="method">${data.method }</textarea>
						</div>
						<hr>
						<div>
							<label for="other">其它</label>
							<textarea name="other" class="form-control" id="other">${data.other }</textarea>
						</div>
						<hr>
						<div class="form-actions center">
							<button type="submit" class="btn btn-sm btn-success">
								Submit
								<i class="icon-arrow-right icon-on-right bigger-110"></i>
							</button>
						</div>
					</div>
				</div></div>
				</form>
			</div>
		</div><!-- /span -->
										
</div>
</div><!-- /.main-content -->

<jsp:include page="../tmp/footer.jsp"/>